package com.twu.biblioteca;

public class MenuGenerator {

    public static String[] generate(State state) {
        System.out.println(state.toString());
        State[] menuStates = state.getMenuStates();
        String[] menuOptions = new String[menuStates.length];
        System.out.println(menuStates.toString());
        for (int i = 0; i < menuStates.length; i++) {
            menuOptions[i] = menuStates[i].getMenuLabel();
        }
        return menuOptions;
    }
}

